package com.hctrl.mybatis.metaObject.handler;

/**
 * @author hanchao
 * @version 1.0
 * @date 2022/5/24 23:00
 */
public class IntegerTypeHandler implements TypeHandler<Integer> {

    @Override
    public Integer typeReplacement(String value) {
        return Integer.parseInt(value);
    }

    @Override
    public Boolean support(Class<?> type) {
        return type.equals(Integer.class);
    }
}
